<template>
  <a-date-picker v-model:value="value" v-bind="$attrs" />
</template>

<script lang="ts" setup>
import { computed } from 'vue';

const props = defineProps<
  { 'modelValue': undefined | string | Date | [Date, Date] | [string, string] | null }>()

const emits = defineEmits(['update:modelValue'])

const value = computed({
  get() {
    return props.modelValue
  },
  set(val) {
    emits('update:modelValue', val)
  }
})

defineOptions({
  name: 'VDatePicker'
})
</script>

<style scoped lang="less">
/* 可以在这里添加样式 */
</style>
